﻿using System.Collections.Generic;

namespace FastFood.Business.Entities
{
    public partial class Cocina
    {
        int insumoID;

        public string NombreInsumo { get; set; }

        public string NombreLote
        {
            get
            {
                if (Lotes == null) return string.Empty;
                else return Lotes.Resumen;
            }
        }

        public string NombreAlmacen
        {
            get
            {
                if (Almacenes == null) return string.Empty;
                else return Almacenes.nombre;
            }
        }

        public int InsumoID
        {
            get 
            {
                if (insumoID == 0 && Lotes != null) insumoID = Lotes.insumoID;
                return insumoID;
            }
            set { insumoID = value; }
        }

        public Movimientos Movimiento { get; set; }

        public List<SemiProductos_Insumos> Insumos { get; set; }
    }
}
